package com.kingyun.gpsinspection.purificationservice.services.tdm.innerservice.impl;

import com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm.EmployeeMapper;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Employee;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeVo;
import com.kingyun.gpsinspection.purificationservice.facade.service.tdm.TdmEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by sugongche on 2017/5/6.
 */
public class TdmEmployeeServiceImpl implements TdmEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public Boolean checkBelongToSchedulingRoom(EmployeeVo employeeVo) {
        List<Employee> list = employeeMapper.selectBelongToSchedulingRoom(employeeVo);

        if(list != null && list.size()>0){
            return true;
        }else{
            return false;
        }
    }
}
